package org.jeecg.modules.demo.znnqjc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.demo.znnqjc.entity.ZwglFx;
import org.jeecg.modules.demo.znnqjc.mapper.ZwglFxMapper;
import org.jeecg.modules.demo.znnqjc.service.IZwglFxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 长势分析
 * @Author: jeecg-boot
 * @Date:   2023-04-27
 * @Version: V1.0
 */
@Service
public class ZwglFxServiceImpl extends ServiceImpl<ZwglFxMapper, ZwglFx> implements IZwglFxService {

    @Autowired
    private ZwglFxMapper zwglFxMapper;

    @Override
    public Result getzd(String yxsj){
        QueryWrapper<ZwglFx> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("yxsj",yxsj);
        List<ZwglFx> list=zwglFxMapper.selectList(queryWrapper);
        return Result.OK(list);
    }

}
